Skip to main content

FlattenLayer

FlattenLayer[] represents a net layer that flattens any input array into a vector.

FlattenLayer[n] represents a net layer that flattens its input to level n.

FlattenLayer[{{s11,s12,…},{s21,s22,…},…}] represents a net layer that flattens its input by combining all levels sij to make each level i in the result.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.